package xyz.zyt123.videowall.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.UUID;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ErrorMsg {
    // 数据ID
    private String uuid;
    // 相机ID
    private String cameraId;
    // 文件路径
    private String imagePath;
    // 异常时间
    private Date dataTime;
    // 异常时间
    private int videoTime;

    public ErrorMsg(String cameraId, String imagePath, int videoTime) {
        this.cameraId = cameraId;
        this.imagePath = imagePath;
        this.videoTime = videoTime;
        this.dataTime = new Date();
        this.uuid = UUID.randomUUID().toString();
    }

}
